package com.shopping.dao;

import com.shopping.bean.Administrator;
import com.shopping.bean.User;
import com.shopping.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminDao {
    Administrator getAdminByAdminname(@Param("adminname") String adminname);

    Administrator getAdminByID(@Param("adminid") Integer adminid);
    int editAdmin(@Param("admin") Administrator administrator);
    int add(@Param("admin") Administrator administrator);
    int deleteAdmin(@Param("adminid") Integer adminis);

    List<Administrator> getAdminList(@Param("text") String text, @Param("page") Page page);

    int getAdminCount(@Param("text") String text);

}
